package com.zhonghui.wms.service.impl;

import com.zhonghui.wms.domain.WmsWarehousingApplicationDetails;
import com.zhonghui.wms.mapper.WmsWarehousingApplicationDetailsMapper;
import com.zhonghui.wms.service.IWmsWarehousingApplicationDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * 智能仓储WMS-入库申请明细Service业务层处理
 *
 * @author zhonghui
 * @date 2022-05-25
 */
@Service
public class WmsWarehousingApplicationDetailsServiceImpl implements IWmsWarehousingApplicationDetailsService {

    @Autowired
    private WmsWarehousingApplicationDetailsMapper wmsWarehousingApplicationDetailsMapper;

    /**
     * 查询智能仓储WMS-入库申请明细
     *
     * @param id 智能仓储WMS-入库申请明细主键
     * @return 智能仓储WMS-入库申请明细
     */
    @Override
    public WmsWarehousingApplicationDetails selectWmsWarehousingApplicationDetailsById(Long id)
    {
        return wmsWarehousingApplicationDetailsMapper.selectWmsWarehousingApplicationDetailsById(id);
    }

    /**
     * 查询智能仓储WMS-入库申请明细列表
     *
     * @param wmsWarehousingApplicationDetails 智能仓储WMS-入库申请明细
     * @return 智能仓储WMS-入库申请明细
     */
    @Override
    public List<WmsWarehousingApplicationDetails> selectWmsWarehousingApplicationDetailsList(WmsWarehousingApplicationDetails wmsWarehousingApplicationDetails)
    {
        return wmsWarehousingApplicationDetailsMapper.selectWmsWarehousingApplicationDetailsList(wmsWarehousingApplicationDetails);
    }

    /**
     * 新增智能仓储WMS-入库申请明细
     *
     * @param wmsWarehousingApplicationDetails 智能仓储WMS-入库申请明细
     * @return 结果
     */
    @Override
    public int insertWmsWarehousingApplicationDetails(WmsWarehousingApplicationDetails wmsWarehousingApplicationDetails)
    {
        return wmsWarehousingApplicationDetailsMapper.insertWmsWarehousingApplicationDetails(wmsWarehousingApplicationDetails);
    }

    /**
     * 修改智能仓储WMS-入库申请明细
     *
     * @param wmsWarehousingApplicationDetails 智能仓储WMS-入库申请明细
     * @return 结果
     */
    @Override
    public int updateWmsWarehousingApplicationDetails(WmsWarehousingApplicationDetails wmsWarehousingApplicationDetails)
    {
        return wmsWarehousingApplicationDetailsMapper.updateWmsWarehousingApplicationDetails(wmsWarehousingApplicationDetails);
    }

    /**
     * 批量删除智能仓储WMS-入库申请明细
     *
     * @param ids 需要删除的智能仓储WMS-入库申请明细主键
     * @return 结果
     */
    @Override
    public int deleteWmsWarehousingApplicationDetailsByIds(Long[] ids)
    {
        return wmsWarehousingApplicationDetailsMapper.deleteWmsWarehousingApplicationDetailsByIds(ids);
    }

    /**
     * 删除智能仓储WMS-入库申请明细信息
     *
     * @param id 智能仓储WMS-入库申请明细主键
     * @return 结果
     */
    @Override
    public int deleteWmsWarehousingApplicationDetailsById(Long id)
    {
        return wmsWarehousingApplicationDetailsMapper.deleteWmsWarehousingApplicationDetailsById(id);
    }
}
